%% Settings for single-side (simplex) printing
% Margins: left 40mm, right 25mm, top and bottom 25mm
% (but beware, LaTeX adds 1in implicitly)
\documentclass[12pt,a4paper]{report}
\setlength\textwidth{145mm}
\setlength\textheight{247mm}
\setlength\oddsidemargin{7.5mm}
\setlength\evensidemargin{7.5mm}
\setlength\topmargin{0mm}
\setlength\headsep{0mm}
\setlength\headheight{0mm}
% \openright makes the following text appear on a right-hand page
\let\openright=\clearpage

%% Character encoding: usually latin2, cp1250 or utf8:
\usepackage[utf8]{inputenc}

%% Prefer Latin Modern fonts
\usepackage{lmodern}

\usepackage{amsmath}        % extensions for typesetting of math
\usepackage{amsfonts}       % math fonts
\usepackage{amsthm}         % theorems, definitions, etc.
\usepackage{bbding}         % various symbols (squares, asterisks, scissors, ...)
\usepackage{bm}             % boldface symbols (\bm)
\usepackage{graphicx}       % embedding of pictures
\usepackage{fancyvrb}       % improved verbatim environment
\usepackage{natbib}         % citation style AUTHOR (YEAR), or AUTHOR [NUMBER]
\usepackage[nottoc]{tocbibind} % makes sure that bibliography and the lists
			    % of figures/tables are included in the table
			    % of contents
\usepackage{dcolumn}        % improved alignment of table columns
\usepackage{booktabs}       % improved horizontal lines in tables
\usepackage{paralist}       % improved enumerate and itemize
\usepackage[usnames]{xcolor}  % typesetting in color
\usepackage{float}
\usepackage[boxruled]{algorithm2e}
\usepackage{gensymb}

\usepackage{listings}
\usepackage{color}

\definecolor{dkgreen}{rgb}{0,0.6,0}
\definecolor{gray}{rgb}{0.5,0.5,0.5}
\definecolor{mauve}{rgb}{0.58,0,0.82}

\lstset{frame=tb,
  language=Java,
  aboveskip=3mm,
  belowskip=3mm,
  showstringspaces=false,
  columns=flexible,
  basicstyle={\small\ttfamily},
  numbers=none,
  numberstyle=\tiny\color{gray},
  keywordstyle=\color{blue},
  commentstyle=\color{dkgreen},
  stringstyle=\color{mauve},
  breaklines=true,
  breakatwhitespace=true,
  tabsize=3
}

\usepackage{enumitem}
\usepackage{courier}
\usepackage{epstopdf}
\begin{document}

% TITLE PAGE
\begin{titlepage}
    \begin{center}
        \vspace*{1cm}

        \Huge
        \textbf{Pepr3D}

        \LARGE

        \vspace{12cm}

		\Large
        \textbf{Authors}:
        Bc.~Štěpán Hojdar,
        Bc.~Tomáš Iser,
        Bc.~Jindřich Pikora,
		Bc.~Luis Sanchez
		\\
		\textbf{Supervisor}: Mgr.~Oskár Elek, Ph.D.
		\\
		\textbf{Consultants}: doc.~Ing.~Jaroslav Křivánek, Ph.D., Ing.~Vojtěch Bubník (Prusa Research~s.r.o.), Tobias~Rittig,~M.Sc.

        \vfill

		Faculty of Mathematics and Physics \\
		Charles University
    \end{center}
\end{titlepage}

%% TOC
\setcounter{tocdepth}{1}
\tableofcontents

% I. INTRO
\part{Introduction}

% Done for the most part
\include{texts/intro}
\include{texts/related-work}

% II. DEVELOPER DOCU
\part{Developer Documentation}

% Should be similar to the Spec's corresponding chapter
\include{texts/architecture}

% In the following, elaborate on classes, what they do, how they are connected, what is ours/what is a library thing.
\include{texts/geometry}
\include{texts/commands}
\include{texts/tools}
\include{texts/ui}

% Describe unit testing, CircleCI on GitHub and manual testing of each tool
\include{texts/testing}

% Describe how to build Pepr3D from scratch
\include{texts/build}

% III. PROGRESS OF IMPLEMENTATION
\part{Progress and results}

% chronologický popis průběhu prací na projektu
\include{texts/progress}

% Compare our result with the minimal implementation we specified. And with the advanced implementation.
% We should have almost ALL advanced topics covered!
\include{texts/min-req}

% Present the whole pipeline, from start to finish on bulbasaur - since we have him printed already.
% This should show how in pepr: you import, color the guy, export the guy.
% Then import to slicer, assign the correct materials, and then a few pictures of printing/printed.
\include{texts/results}

% kritické zhodnocení přijatých řešení a možnosti dalšího vývoje
% 1. Chosen techniques critique - choosing CGAL/cereal/cinder, some other that didnt fit in their own chapter
% 2. Future work on the project - all that doesn't work and could, e.g. different more sophisticated export
\include{texts/conclusion}

% IV. USER DOCU
\addcontentsline{toc}{part}{Appendix I: User Documentation}
\part*{Appendix I: User Documentation}

% Podrobný popis instalace díla včetně přesné specifikace požadavků na použitý hardware a software
\include{texts/requirements}

% Showing the tool for the first time to a new user
\include{texts/first-run}

% Demonstrate and explain each tool to the USER (not a software guy)
\include{texts/user-tools}

% Demonstrate export and import, maybe even with SLICER support
\include{texts/import-export}

% Explain all settings - both view and program options
\include{texts/preferences}

% V. CD contents
\addcontentsline{toc}{part}{Appendix II: CD Attachment}
\part*{Appendix II: CD Attachment}

\include{texts/cd}

\end{document}